<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/adminjsp/taglibs.jsp"%>
<!DOCTYPE html>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>人人自由任务后台管理系统</title>
		<link rel="stylesheet" href="../../styles/adminCss/backstage.css">
	</head>
	<body>
		<jsp:include page="top.jsp"></jsp:include>
		<div class="adminMain">
			<div class="adminLeft">
				<jsp:include page="left.jsp"></jsp:include>
			</div>
			<div class="adminRight">
			    <div class="content clearfix">
			        <div class="main">
			        
			        <div class="cont">
		                <div class="title">已审核任务列表</div>
		                <div class="details">
		                    <!--表格-->
		                    <table class="table" cellspacing="0" cellpadding="0">
		                        <thead>
		                            <tr>
		                                <th width="15%">提交任务编号</th>
		                                <th width="15%">提交者</th>
		                                <th width="25%">任务名称</th>
		                                <th width="15%">提交时间</th>
		                                <th>操作</th>
		                            </tr>
		                        </thead>
		                        <tbody>
		                        <c:if test="${not empty submitAuditedTaskInfoList}">
		                        <c:forEach var="data" items="${submitAuditedTaskInfoList}" varStatus="status">
		                            <tr>
		                                <!--这里的id和for里面的c1 需要循环出来-->
		                                <td><input type="checkbox" id="c1" class="check"><label for="c1" class="label">${data.submitId}</label></td>
		                                <td>${data.userName}</td>
		                                <td>${data.title}</td>
		                                <td>${data.submitDate}</td>
		                                <td align="center">
		                                <a href="auditedTask?submitId=${data.submitId}">
		                                	<input type="button" value="查看" class="btn">
		                                </a>
		                               <a class="btn" href="deleteAuditedSubmitInfo?submitId=${data.submitId}" onClick="return window.confirm('确认要删除选中的信息')">删除</a>
		                                </td>
		                            </tr>
		                        </c:forEach>
		                        </c:if>
		                        <c:if test="${empty submitAuditedTaskInfoList}"> 
			                        	<tr>
			                        	<td colspan="5">没有查询到相关的内容......</td>
			                        	</tr>
		                        </c:if>
		                        </tbody>
		                    </table>
		                </div>
		            </div>
			        
			        </div>
			    </div>
			 </div>
		</div>
	</body>
</html>